
ROOT_DEPTH = ../../..

include $(ROOT_DEPTH)/config/makeinclude/env.make
include $(ROOT_DEPTH)/config/makeinclude/platform.make

ifeq (1, $(x86_64))
  USER_DEPTH = ../../../bin/x86
else
  USER_DEPTH = ../../..
endif

USER_LIB = framework


USER_SRCS = \
	RtBase.cpp \
	RtAtomicOperationT.cpp \
	RtConfigInitFile.cpp \
	RtConditionVariable.cpp \
	RtDataBlock.cpp \
	RtDnsManager.cpp \
	RtEventQueueBase.cpp \
	RtInetAddr.cpp \
	RtMessageBlock.cpp \
	RtMutex.cpp \
	RtPipe.cpp \
	RtReactorBase.cpp \
	RtReactorInterface.cpp \
	RtReactorNotifyPipe.cpp \
	RtReactorRealTimeSignal.cpp \
	RtReactorThreadProxy.cpp \
	RtReactorSelect.cpp \
	RtSocket.cpp \
	RtThread.cpp \
	RtThreadInterface.cpp \
	RtThreadManager.cpp \
	RtThreadProxyManager.cpp \
	RtThreadReactor.cpp \
	RtThreadTask.cpp \
	RtTimerQueueBase.cpp \
	RtTimerQueueOrderedList.cpp \
	RtTimerQueueCalendar.cpp \
	RtTimerWrapper.cpp \
	RtTimeValue.cpp \
	RtTrace.cpp \
	RtLog.cpp \
	RtUtilClasses.cpp \
	RtTimerPreciseWrapperID.cpp \
	RtMD5.cpp			\
	$(NULL) \

ifeq ($(INFOWARELAB_HAVE_EPOLL), 1)
	USER_SRCS += RtReactorEpoll.cpp
endif # INFOWARELAB_HAVE_EPOLL

ifeq ($(leak_check), 1)
	USER_SRCS += LeakTracer.cpp
endif

USER_INCLDIRS = -I../h -I../../h

USER_DEFFLAGS = -DRT_SUPPORT_OBSOLETE_UTIL -DRT_DISABLE_EVENT_REPORT 

ifeq ($(leak_check), 1)
	USER_DEFFLAGS += -DLEAK_CHECK
endif

ifeq ($(INFOWARELAB_HAVE_EPOLL), 1)
	USER_DEFFLAGS += -DRT_ENABLE_EPOLL
endif # INFOWARELAB_HAVE_EPOLL

USER_LINK_LIBS =

USER_OBJ_DIR = $(USER_DEPTH)/bin/platform/framework

USER_LIB_DIR = $(USER_DEPTH)/bin

include $(ROOT_DEPTH)/config/makeinclude/all_in_one.make
